package 接口;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;

public class ceshi {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("欢迎使用打印机");
        System.out.println("请选择纸张   1.A4    2.B5");
        int xuanze=input.nextInt();
        zhizhang zhi=null;
        if (xuanze==1){
            zhi=new A4();
        }else {
            zhi=new B5();
        }
        System.out.println("请选择纸张   1.彩色    2.黑白");
        int xuanze1=input.nextInt();
        mohe he=null;
        if (xuanze1==1){
            he=new caise();
        }else {
            he=new heibai();
        }
        dayinji dayi=new dayinji(he, zhi);
        dayi.dayin();
    }
}
